package com.wn.controller;

import com.wn.service.MyServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yellow Docter
 * @date 2023 -03-10
 * @desc
 */
@RestController
public class HelloController {

    @Autowired
    private MyServiceImpl myService;

    @GetMapping("/show")
    public String hello(){
        return "hello sentinel";
    }

    @GetMapping("/list")
    public String list(){
        return "list";
    }

    @GetMapping("/check1")
    public String check1(){
        return myService.doSomething();
    }

    @GetMapping("/check2")
    public String check2(){
        return myService.doSomething();
    }
}
